<div class="section">
        <?php
        $this->widget('AdminBankMenu', array(
            'bank_id' => $model->id,
            'bank_title' => $model->title,
        ));
        ?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Добавление новости')?></h2>
				<span class="hide"></span>
			</div>
<div class="content forms">
    <?$form=$this->beginWidget('CActiveForm', array(
        'id'=>'bankPoint-form',
        'enableAjaxValidation'=>true,
        'action'=>'',
        'method'=>'post',
    )); ?>
    <?=$form->errorSummary($points); ?>
             
                        <div class="line">
                                <div class="name_param"><?=$form->label($points,'title'); ?></div>
                                <?=CHtml::activeTextField($points,'title',array('class'=>'xl')); ?>
                                <?php  echo $form->error($points,'title'); ?>
                        </div>
    
                        <div class="line">
                                <div class="name_param"><?=$form->label($points,'city_id'); ?></div>                           
                                <?=CHtml::activeListBox($points, 'city_id', CHtml::listData($cities, 'id', 'title'), array('empty'=>Yii::t('app','Город'),'id'=>'sity_map','class'=>'jcalendar-select-val')); ?>
                                <?php echo $form->error($points,'city_id'); ?>
                        </div>
    
                        <div class="line">
                                <div class="name_param"><?=$form->label($points,'address'); ?></div>
                                <?=CHtml::activeTextField($points,'address',array('class'=>'xl')); ?>
                                <?php echo $form->error($points,'address'); ?>
                        </div>
    
                        <div class="line">
                               <div class="name_param"><?=$form->label($points,'phone'); ?></div>
                                <?=CHtml::activeTextField($points,'phone',array('class'=>'xl')); ?>
                                <?php echo $form->error($points,'phone'); ?>
                        </div>
    
                         <div class="line">
                                <div class="name_param"><?=$form->label($points,'mode'); ?></div>
                                <?=CHtml::activeTextField($points,'mode',array('class'=>'xl')); ?>
                                <?php echo $form->error($points,'mode'); ?>
                        </div>

                        <div class="line">
                                <div class="name_param"><?=$form->label($points,'map_longitude'); ?></div>
                                <?=CHtml::activeTextField($points,'map_longitude',array('class'=>'xl')); ?>
                                <?php echo $form->error($points,'map_longitude'); ?>
                        </div>
    
                        <div class="line">
                                <div class="name_param"><?=$form->label($points,'map_latitude'); ?></div>
                                <?=CHtml::activeTextField($points,'map_latitude',array('class'=>'xl')); ?>
                                <?php echo $form->error($points,'map_latitude'); ?>
                        </div>

                        <div class="line">
                           <?=$form->label($points,'type'); ?>
                           <input type="radio" name="BankPoints[type]" value="0" <?=(($points->type == 0)?'checked':'')?> />Отдел &nbsp;&nbsp;
                           <input type="radio" name="BankPoints[type]" value="1" <?=(($points->type == 1)?'checked':'')?> />Банкомат
                        </div>
    
                        <div class="line">
                           <?=$form->label($points,'is_active'); ?>
                           <input type="checkbox" name="is_active" id="check-1" <?if($points->is_active == 1) echo 'checked';?> />
                        </div>
<!---------------------------------------------->
                    <div class="line button">
                                          
                                            <button type="submit" class="green medium"><span><?=((isset($points['title']) && $points['title'])?'Сохранить':'Добавить')?></span></button>
                                            <button type="submit" onclick="window.location.replace('<?=$this->createUrl("/banks/bankpoints/id/$model->id")?>');return false; " class="blue medium"><span>Отмена</span></button>
                        </div>
                                            
                                        </div>

    <?$this->endWidget(); ?>

			</div>
		</div>